package com.cloud.phone.http

import com.cloud.phone.bean.BaseDataBean
import com.cloud.phone.constants.Constants
import retrofit2.http.Field
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @auth: njb
 * @date: 2024/4/8 17:24
 * @desc: 描述
 */
interface ApiService {
    @GET(Constants.UPDATE_APK)
    suspend fun getUpdateAPK(@Query("version") version:Int,@Query("url") apkUrl:String): CloudHttpResult<BaseDataBean>

    @GET(Constants.GET_TOKEN_REQUEST_URL)
    suspend fun getToken(@Query("id") phoneId:String,@Query("type") type:String):CloudHttpResult<String>
}